<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<style type="text/css">
    * {
        font-family: fantasy;
        font-size: 2.8em;
    }

    div {
        height: auto;
        width: auto;
        background: url("../images/1.jpg") no-repeat;
        background-origin: border-box;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

    }
</style>

<body>
<div>背景在文字出</div>
</body>

</body>
</html>